package com.lintesis.lintesismodel.protocolo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.lintesis.lintesismodel.common.Type;
import com.lintesis.lintesismodel.common.hibernate.BussinessObject;
import javax.persistence.ManyToOne;

@Entity
public class Metodo extends BussinessObject{

	@javax.persistence.SequenceGenerator( name="SEQ_METODO", sequenceName="SEQ_METODO", allocationSize=1)
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_METODO")
	
	private Integer metodoId;
	private String nombre;
	@ManyToOne
	private Type tipoMuestra;
	
	@Override
	public void doAfterDelete() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doAfterSave() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doBeforeDelete() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doBeforeSave() {
		// TODO Auto-generated method stub
	}

	@Override
	public Integer getId() {
		return metodoId;
	}

	@Override
	public String getObjectDescription() {
		return null;
	}

	public Integer getMetodoId() {
		return metodoId;
	}

	public void setMetodoId(Integer metodoId) {
		this.metodoId = metodoId;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public Type getTipoMuestra() {
		return tipoMuestra;
	}

	public void setTipoMuestra(Type tipoMuestra) {
		this.tipoMuestra = tipoMuestra;
	}

}
